package backend;
/**
 * This class represents a permission in FReeConf. A permission is defined as an
 * attribute (name) and value that FreeRADIUS will reply with.
 * 
 * @author Aaron A. Lovato
 */

public class Permission
{
    // The name of this permission
    private String name;
    
    // The value of this permission
    private String value;
    
    /**
     * Creates a new Permission object.
     * 
     * @param name The name of this permission.
     * @param value The value to be assigned to this permission.
     */
    public Permission(String name, String value)
    {
        this.name = name;
        this.value = value;
    }
    
    /**
     * Gets the name of this permission.
     *
     * @return The name of this permission.
     */
    public String getName()
    {
        return name;
    }
    
    /** 
     * Gets the value of this permission.
     * 
     * @return The value of this permission.
     */
    public String getValue()
    {
        return value;
    }
    
    /**
     * Sets the value of this permission.
     * 
     * @param value Value to assign to this permission.
     */
    public void setValue(String value)
    {
        this.value = value;
    }
    
    /**
     * Sets the name of this permission.
     *
     * @param name to give this permission.
     */
    public void setName(String name)
    {
        this.name = name;
    }
    
}